import java.util.ArrayList;
import java.util.List;


public class Proband {
	
	private String origin;
	private String name;
	private String id;
	private List<Land> land =new ArrayList<Land>();
	
	Proband(String name, String id, String origin){
		setName(name);
		setId(id);
		setOrigin(origin);
	}
	
	String getName() {
		return name;
	}
	void setName(String name) {
		this.name = name;
	}
	String getId() {
		return id;
	}
	void setId(String id) {
		this.id = id;
	}

	List<Land> getLand() {
		return land;
	}

	void setLand(List<Land> land) {
		this.land = land;
	}
	
	void addLand(String name, String value){
		Land land = new Land(name,value);
		this.land.add(land);
	}

	String getOrigin() {
		return origin;
	}

	void setOrigin(String origin) {
		this.origin = origin;
	}
	
	String getLandValue(String landName){
		for (int i = 0; i < land.size(); i++) {
			if(land.get(i).getName() == landName){
				return land.get(i).getValue();
			}
		}
	return "Suck my cock";
	}
}
